package org.jeecg.modules.zonglzp.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.zonglzp.entity.DepartmentEntity;

import java.util.List;

public interface DepartmentService {

    //新增部门
    int addDepartment(DepartmentEntity entity);


    //查询该客户下的所有部门
    IPage<DepartmentEntity> getDepartment(Page<DepartmentEntity> page, String customerId);

    //删除部门
    int deleteDepartment(int id);


    //编辑部门信息
    int updateDepartment(DepartmentEntity entity);

    //通过部门名称查询该部门是否已存在
    String getdepartnamebyname(String departName, String customerId);

    //查询全部部门 以list返回
    List<DepartmentEntity> getAllDepartmentList(String customerId);


    //编辑部门时候的详情
    DepartmentEntity getDepartmentbyId(int id);

    //c查询部门id
    int getdepartIdbyname(String departName, String customerId);
}
